package GUI;

import java.awt.*;

import javax.swing.*;
/**
 *This class creates instance of TestingStageGui 	
 * to display when needed  
 * @author Aviat
 *
 */
public class TestingStageGui extends JPanel{
	
	private static final long serialVersionUID = 1L;
	private JButton canButton;
	private JButton SubButton;
	JComboBox Decision;
	private JLabel label;
	private JTextArea comm;
	/**
	 * the constructor
	 */
	public TestingStageGui(){
		super();
		SubButton = new JButton("submit");
		canButton = new JButton("cancel");
		comm = new JTextArea();
		Decision = new JComboBox();
		Decision.setModel(new DefaultComboBoxModel(new String[] {"", "APPROVAL", "FAILURE"}));
		initiate();
	}
	/**
	 * this method initialize the TestingStageGui
	 */
	public void initiate(){
		JLabel lblLogInWindow = new JLabel("Testing Stage");
		lblLogInWindow.setForeground(Color.BLUE);
		lblLogInWindow.setFont(new Font("Arial Black", Font.BOLD, 17));
		lblLogInWindow.setBounds(155, 26, 308, 50);
		add(lblLogInWindow);
		
		JLabel lblUserName = new JLabel("Choose Decision:");
		lblUserName.setFont(new Font("Arial", Font.BOLD, 13));
		lblUserName.setBounds(27, 93, 171, 50);
		add(lblUserName);
		
		Decision.setBounds(177, 106, 142, 27);
		add(Decision);	
		
		label = new JLabel("Comments:");
		label.setFont(new Font("Arial", Font.BOLD, 13));
		label.setBounds(10, 193, 171, 50);
		add(label);
		
		comm = new JTextArea();
		comm.setBounds(104, 163, 342, 118);
		add(comm);
		
		SubButton.setFont(new Font("Arial", Font.PLAIN, 12));
		SubButton.setBounds(262, 319, 122, 40);
		add(SubButton);
				
		canButton.setFont(new Font("Arial", Font.PLAIN, 12));
		canButton.setBounds(27, 319, 122, 40);
		add(canButton);
				
		setLayout(null);
		setSize(new Dimension(500, 401));
	}
	
	/**
	 * 
	 * @return JTextArea with the comments
	 */
	public JTextArea getTextArea_comm(){
		return comm;
	}
	/**
	 * 
	 * @return JComboBox with the decision
	 */
	public JComboBox getDecision(){
		return Decision;
	}
	/**
	 * 
	 * @return the submit button
	 */
	public JButton getSubButton(){
		return SubButton;
	}
	/**
	 * 		
	 * @return cancel button
	 */
	public JButton getcanButton(){
		return canButton;
	}

}
